package com.atguigu.dao;

import com.atguigu.pojo.User;

public interface UserDao {
    /**
     * @author VegetDog
     * @Description 根据用户名查询用户内容
     * @date 2020-10-19 16:38
     * @param username
     * @return com.atguigu.pojo.User
     */
    public User queryUserByUsername(String username);
    /**
     * @author VegetDog
     * @Description 保存用户信息
     * @date 2020-10-19 16:39
     * @param user
     * @return int 返回影响的行数，有问题返回-1
     */
    public int saveUser(User user);
    /**
     * @author VegetDog
     * @Description 根据用户名和密码查询信息
     * @date 2020-10-19 16:41 
     * @param username
 * @param password
     * @return com.atguigu.pojo.User
     */
    public User queryUserByUsernameAndPassword(String username,String password);
}
